<!DOCTYPE html>
<html>
<head>
	#parse("/h5/common/webWords.html")
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />
    <meta name="CODE_LANGUAGE" content="C#" />
    <meta name="vs_defaultClientScript" content="JavaScript" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta content="telephone=yes" name="format-detection">
	<meta content="email=no" name="format-detection">
	<LINK rel=stylesheet type=text/css href="http://${staticHost}/css/component.css">
	<link rel="stylesheet" type="text/css" href="http://${staticHost}/css/medioadaption.css"/>
	<link rel="stylesheet" type="text/css" href="http://${staticHost}/css/stcss.css"/>
	<!--头部 begin -->
    #parse("/h5/common/headerTop.html")
    <!--头部 end -->
    <!--登出系统 begin-->
    #parse("/h5/common/loginHeader.html")
    <!--登出系统 end-->
    <link rel="stylesheet" type="text/css" href="http://${staticHost}/css/common.css" />
<link rel="stylesheet" href="http://${staticHost}/css/larea.css">
<style type="text/css">
	.formTemp1 dt {
		font-size: 14px;
		width: 90px;
		color: #666;
	}
	.formTemp1 dd {
		padding-left: 90px;
	}
	.formTemp1 .spn {
		width: 90%;
		height: 28px;
		line-height: 28px;
		display: inline-block;
		padding: 0px;
		margin: 0px;
		padding-right: 5%;
		text-align: right;
	}
	.jobtitle1{
		font-size: 18px;
        height: 50px;
        line-height: 50px;
		color: #333333;
		background-color: #fefeff;
		border-bottom: 1px solid #f8f7fc;
	}
	.btnCommon {
		width: 100%;
		display: block;
		white-space: nowrap;
		overflow: hidden;
	}
</style>
	<script type="text/javascript" src="http://${staticHost}/js/jquery2.js"></script>
	#parse("/h5/common/selectAreaBasic.html")
</head>

<body class="bodybg" style="background: #f8f7fc;">
#parse("/h5/common/back.html")
<div  style="background: white;">
  <div align="center" class="jobtitle1">完善个人信息</div>
  <div class="formTemp1">
	  <input type="hidden" id="jobSeeker" value="$!{jobSeekerId}">
	  <input type="hidden" id="type" value="$!{type}">
	  <input type="hidden" id="resumeCount" value="$!{resumeCount}">
	  <input type="hidden" id="jobId" value="$!{jobId}">
	<dl>
		<dt>期望从事行业</dt>
		<dd><div class="spn pop"><a id="btnWishTrade" class="btnCommon" href="javascript:void(0)" name="btnWishTrade" title="请选择"><b class="callinghtml">
		#if(!$expectedJobIndustryName)
			请选择
		#else
			$expectedJobIndustryName
		#end
		</b></a><em></em></div>
		#if(!$userMap.expectedJobIndustry)
			<input name="calling" type="hidden" id="calling" >
		#else
			<input name="calling" type="hidden" id="calling" value="$userMap.expectedJobIndustry">
		#end
		
		</dd>
	</dl>
	<dl>
		<dt>期望从事职业</dt>
		<dd><div class="spn pop"><a id="post" class="btnCommon" href="javascript:void(0)" name="post" title="请选择"><label><b class="jobhtml">
		#if(!$expectedJobCareerName)
			请选择
		#else
			$expectedJobCareerName
		#end
		</b></label></a><em></em></div>
		#if(!$userMap.expectedJobCareer)
			<input name="job" type="hidden" id="job" >
		#else
			<input name="job" type="hidden" id="job" value="$userMap.expectedJobCareer">
		#end
		</dd>
	</dl>
	<dl>
	<dt>喜欢的岗位</dt>
	<dd>
		#if(!$userMap.enjoyWork)
			<input name="txt_WishJobName" type="text" id="txt_WishJobName" maxlength="50" class="txt" placeholder="请填写您喜欢的工作">
		#else
			<input name="txt_WishJobName" type="text" id="txt_WishJobName" maxlength="50" class="txt" value="$userMap.enjoyWork">
		#end
	</dd>
	</dl>
	<dl>
	<dt>期望地区</dt>
	<dd>
	<div class="spn pop">
	#if(!$expectedJobAreaName)
		<input id="cityhtml" type="text" readonly="" placeholder="选择城市"  />
	#else
		<input id="cityhtml" type="text" readonly="" placeholder="选择城市"  value="$expectedJobAreaName"/>
	#end
	</div>
	#if(!$userMap.expectedJobArea)
		<input id="cityvalue" type="hidden" value=""/>
	#else
		<input id="cityvalue" type="hidden" value="$userMap.expectedJobArea"/>
	#end
	
	</dd>
	</dl>
	<dl>
	<dt>期望薪水</dt>
	<dd>
		<select class="pay" name="pay" dir="rtl" id="pay">
			<option value="0">请选择</option>
			#foreach($jobPay in $jobPayList)
				<option value="$jobPay.value" #if($userMap.expectedJobPay == $jobPay.value) selected="selected"#end>$jobPay.label</option>
			#end
		</select>
		<div class="clear"></div>
	</dd>
	</dl>
	<dl>
	<dt>工作性质</dt>
	<dd>
		<select class="nature" name="nature" dir="rtl" id="nature">
			<option value="0">请选择</option>
			#foreach($recruitmentNature in $recruitmentNatureList)
				<option value="$recruitmentNature.value" #if($userMap.expectedJobNature == $recruitmentNature.value) selected="selected"#end>$recruitmentNature.label</option>
			#end
		</select>
		<div class="clear"></div>
	</dd>
	</dl>
	<dl>
	<dt class="dt1">上岗时间</dt>
	<dd>
		<select class="startdate" name="startdate" dir="rtl" id="startdate">
			<option value="0">一周以内</option>
			<option value="1">半月以内</option>
			<option value="2">一月以内</option>
			<option value="3">暂时不换</option>
		</select>
		<div class="clear"></div>
	</dd>
	</dl>
	  #if("$!{type}" == 'createResume')
	  <div class="md_dl" style="padding: 10px 0px;"><input value="保存下一步" name="" status="1" type="button" status="1"  class="savebutton" style="width:290px;ont-family:'Microsoft Yahei';
		  font-size: 16px; background: #188aff; color: white; text-align: center; height:42px; border:none; margin-top:10px; margin-bottom:10px;" ></div>
	  #else
	  <div class="md_dl" style="padding: 10px 0px;"><input value=" 保 存 " name="" type="button" status="1"  class="savebutton" style="width:290px;ont-family:'Microsoft Yahei';
		  font-size: 16px; background: #188aff; color: white; text-align: center; height:42px; border:none; margin-top:10px; margin-bottom:10px;" ></div>
	  #end

	</div>
</div>
<div class="dialogMask" style="display: none; z-index: 118; opacity: 0.5;"></div>

<div class="choice choiceIndustry" style="position: absolute; left: 0px; bottom: 0px; display: none; z-index: 119;">
	<div class="choiceCon">
		<div class="choiceContent">
			<div class="choiceTxt">
				<p id="_limit"></p>
				<div class="choiceTopBtn">
					<a href="javascript:void(0)" class="popBtn1 _btnAreaClear" id="_btnAreaClear" data="">清空</a>
					<a href="javascript:void(0)" class="popBtn2 _btnAreaOk" id="_btnAreaOk"><b class="L"></b><b class="R"></b>确定</a>
				</div>
				<div class="clear"></div>
			</div>
			<div class="choiceLst">
			</div>
			<p class="tit">已选行业：</p>			
			<div class="choiceSelected">	
			<ul id="_selected">
			</ul>				
			<div class="clear"></div>			
			</div>
		</div>
	</div>
</div>
    <script src="http://${staticHost}/js/LArea.js"></script>
<script>
    $(".savebutton").click(function(){
		var calling = $("#calling").val();
		var job = $("#job").val();
		var txtWishJobName = $("#txt_WishJobName").val();
		var cityvalue = $("#cityvalue").val();
		var jobSeeker = $("#jobSeeker").val();
		var pay = $("#pay option:selected").val();
		var nature = $("#nature option:selected").val();
		var startdate = $("#startdate option:selected").val();
		var type = $("#type").val();
		var resumeCount = $("#resumeCount").val();
		var jobId = $("#jobId").val();
		if(calling == ""){
            showMessage("期望行业, 不得为空");
		    return;
		}
        if(job == ""){
            showMessage("期望职业, 不得为空");
            return;
        }
        if(txtWishJobName == ""){
            showMessage("岗位名称, 不得为空");
            return;
        }
        if(cityvalue == ""){
            showMessage("期望地区, 不得为空");
            return;
        }
        if(pay == ""){
            showMessage("期望薪水, 不得为空");
            return;
        }
        if(nature == ""){
            showMessage("工作性质, 不得为空");
            return;
        }
        if($(this).attr("status") == 2){
            return false;
        }
        $(this).attr("status",2);
        $.ajax({
            type:'post',
            url:'${requestHost}/personnelWork/auth/jobIntension',
            contentType:'application/x-www-form-urlencoded; charset=utf-8',
            data:{
                calling:calling,
                job:job,
                txtWishJobName:txtWishJobName,
                cityvalue:cityvalue,
                pay:pay,
                nature:nature,
                jobSeeker:jobSeeker,
                startdate:startdate,
                jobId:jobId,
                resumeCount:resumeCount
            },
            success: function (result) {
                if(result.status == '00000000'){
                    var userJobSeeker = result.result.userJobSeeker;
                    var userJobBasisSeeker = result.result.userJobBasisSeeker;
                    if(jobId== ''){
                    	window.location.href="/personnelWork/auth/createResume?userJobSeeker="+userJobSeeker+"&userJobBasisSeeker="+userJobBasisSeeker+"&createType=resume";
                    }else{
	                    window.location.href="/personnelWork/auth/myResume?jobId="+jobId;
                    }
                }else{
                    showMessage(result.message);
                    window.location.href="/personnelWork/auth/myResumeList";
                }
            }
		});

	});
  //定义数组用于区分是行业、职业等选项
    var choicearray = [];
    choicearray[1] = 'choicecalling';
    choicearray[2] = 'choicejob';
    console.log(choicearray);

    $(document).on("click", "._btnAreaClear", function(){
    	var id = $(this).attr("data");
    	if(id==1){
    		$("#calling").val("");
    		$(".callinghtml").html("请选择");
    	}else if(id==2){
    		$("#job").val("");
    		$(".jobhtml").html("请选择");
    	}
    	$("#_selected").html("");
    	$("input[type='checkbox']").prop("checked", false);
    })
    $(document).on("click", "._btnAreaOk", function(){
    	$("._btnAreaClear").attr("data",0);
    	$(".choiceLst,#_selected").html("");
    	$(".dialogMask,.choice").hide();
    })
    function getCalling(id)
    {
        var l = calling;
        for(var i in l)
        {
            var js = l[i].subSorts;
            for(var j in js)
            {
                if(js[j].id == id)
                {
                    return js[j];
                }
                if(js[j].subSorts)
                {
                    var subjs = js[j].subSorts;
                    for(var k in subjs)
                    {
                        if(subjs[k].id==id)
                        {
                            return subjs[k];
                        }
                    }
                }
            }
        }
        return null;
    }

    var bigCata = [];
    
    function getString(str,mark){
    	array = str.split(mark);
    	return array;
    }
    function addKey(array,key){
    	if(array.length >= 6){
    		layer.open({
    			content: '最多可选六个'
    			,btn: '好的'
    		  });
    		  return false;
    	}
    	if($.inArray(key, array)==-1){
    		array.push(key);
    	}
    	return array;
    }
    function delkey(array,key){
    	array.splice($.inArray(key,array),1);
    	return array;
    }


    //城市选择特效
    //window.setTimeout(showcity,5000);
    //function showcity(){
        var area = new LArea();
        area.init({
            'trigger': '#cityhtml',
            'valueTo': '#cityvalue',
            'keys': {
                id: 'id',
                name: 'name'
            },
            'type': 2,
            'data': [provs_data, citys_data, dists_data]
        });
    //}
</script>
#parse("/h5/common/selectCalling.html")
#parse("/h5/common/selectJob.html")
<!--底部 begin -->
#parse("/h5/common/footer.html")
<!-- 底部 end -->
</body>
</html>
